d={'1001':'手机','1002':'手表','1003':'手链','1004':'手提包','1005':'手指环'}
c={}
i=0
num=0
while num!='q' and i<5:
    num = input('请输入要购买商品的编号')
    if num!='q':
        c[num]=d[num]
        i+=1
    print('已添加请继续添加')
for item in c:
    print(item,':',c[item])





